package com.yuanfeng.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuanfeng.base.dto.HoneycombArticleQueryDTO;
import com.yuanfeng.base.entity.BaseHoneycombArticleEntity;
import com.yuanfeng.base.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName BaseHoneycombArticleMapper
 * @Description  图文发现表
 * @Author ty
 * @Date 2023-07-04 16:27:37
 * @Version 1.0
 **/
@Mapper
public interface BaseHoneycombArticleMapper extends BaseMapper<BaseHoneycombArticleEntity> {

    /**
     * 装修 查看文章列表
     * */
    IPage<HoneyCombArticleListVO> selectFinishArticleList(IPage<HoneyCombArticleListVO> page,@Param("param") HoneycombArticleQueryDTO param);


    /**
     * 查询蜂窝文章详细信息
     *
     * @param param
     * @return
     */
    ArticleDetailVO selectHoneycombArticleDetail(@Param("param") HoneycombArticleQueryDTO param);

    /**
     * 查询蜂窝文章详细信息
     *
     * @param param
     * @return
     */
    ArticleDetailVO selectHoneycombArticleDetail2(@Param("param") HoneycombArticleQueryDTO param);

    /**
     * 查询文章标签
     *
     * @param articleId
     * @return
     */
    List<HoneycombLabelVO> selectArticleLabel(@Param("articleId") Integer articleId);



    /**
     * 查询喜欢文章
     *
     * @param param
     * @return
     */
    List<AriticleInformatioListVO> selectLikeArticle(@Param("param") LikeArticleVO param);



    /**
     * 查询留言点赞
     *
     * @param commonIdList
     * @return
     */
    List<WapCommonBaseUserFootVO> selectAppGuessLike3(@Param("commonIdList") List<Integer> commonIdList);
}
